package intermedia;

public class InvalidTypeAttributeException extends Exception{

	private int line, column;
	
	public InvalidTypeAttributeException(int line, int column)
	{
		this.line = line;
		this.column=column;
	}
	
	public InvalidTypeAttributeException(){
		line = -1;
		column=-1;
	}
	
	public String getMessage(){
		if( line == -1 && column == -1 )
			return "Semantic Error! Invalid type attribute!";
		
		return "Semantic Error! Invalid type attribute at line " + line + ", column " + column +"!";
		
	}
}
